export default {
  namespaced: true,
  state: {
    id: 0,
    name: '',
    userInfo:{},
    token:'',
    avatarMan:'/static/images/default-avatar-man.png',
    avatarWoman:'/static/images/default-avatar-woman.png',
  },
  mutations: {
    updateId (state, id) {
      state.id = id
    },
    updateName (state, name) {
      state.name = name
    },
    updateUserInfo (state,userInfo) {
      state.userInfo = userInfo
    },
    updateToken (state,token){
      state.token = token
    },
    updateAvatarMan (state,avatarMan){
      state.avatarMan = avatarMan
    },
    updateAvatarWoman (state,avatarWoman){
      state.avatarWoman = avatarWoman
    },
  }
}
